package frame;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.border.CompoundBorder;
import javax.swing.ImageIcon;
import javax.swing.border.BevelBorder;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class GameFrameDesign extends JFrame {

	private JPanel contentPane;
	private JTextField massageTextField;
	private JPanel chessPanel;
	private JLabel selfLabel;
	private JLabel otherLabel;
	private JButton giveInButton;
	private JButton readyButton;
	private JButton sendButton;
	private JButton clearButton;
	private JButton returnButton;
	private JTextArea messageTextArea;


	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					GameFrameDesign frame = new GameFrameDesign();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public GameFrameDesign() {
		setTitle("逗比大作战");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 1009, 691);
		contentPane = new JPanel();
		contentPane.setBorder(new CompoundBorder());
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		chessPanel = new JPanel();
		chessPanel.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null, null));
		chessPanel.setBounds(0, 0, 600, 600);
		contentPane.add(chessPanel);
		
		massageTextField = new JTextField();
		massageTextField.setBounds(634, 571, 349, 29);
		contentPane.add(massageTextField);
		massageTextField.setColumns(10);
		
		selfLabel = new JLabel("自己");
		selfLabel.setIcon(new ImageIcon("E:\\BaiduYunDownload\\myWorkPlace2\\GobangClient\\resource\\imageBlack.png"));
		selfLabel.setToolTipText("");
		selfLabel.setBounds(634, 10, 349, 40);
		contentPane.add(selfLabel);
		
		otherLabel = new JLabel("对手");
		otherLabel.setIcon(new ImageIcon("E:\\BaiduYunDownload\\myWorkPlace2\\GobangClient\\resource\\imageWhite.png"));
		otherLabel.setBounds(634, 58, 349, 40);
		contentPane.add(otherLabel);
		
		JLabel lblNewLabel_2 = new JLabel("消息记录");
		lblNewLabel_2.setBounds(634, 113, 54, 15);
		contentPane.add(lblNewLabel_2);
		
		giveInButton = new JButton("投降");
		giveInButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		giveInButton.setBounds(507, 624, 93, 23);
		contentPane.add(giveInButton);
		
		readyButton = new JButton("准备");
		readyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		readyButton.setBounds(402, 624, 93, 23);
		contentPane.add(readyButton);
		
		sendButton = new JButton("发送消息");
		sendButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		sendButton.setBounds(637, 624, 93, 23);
		contentPane.add(sendButton);
		
		clearButton = new JButton("清除记录");
		clearButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		clearButton.setBounds(890, 624, 93, 23);
		contentPane.add(clearButton);
		
		returnButton = new JButton("返回大厅");
		returnButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		returnButton.setBounds(10, 624, 93, 23);
		contentPane.add(returnButton);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(634, 138, 349, 423);
		contentPane.add(scrollPane);
		
		messageTextArea = new JTextArea();
		scrollPane.setViewportView(messageTextArea);
	}
}
